package com.tem.finance.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 公司收支账户
线上收款、付款账户，作业调度，每天统计一次, 今天统计昨天的
 * </p>
 *
 * @author 陈辉
 * @since 2023-11-06
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("finance_account")
@ApiModel(value="FinanceAccount对象", description="公司收支账户 线上收款、付款账户，作业调度，每天统计一次, 今天统计昨天的")
public class FinanceAccount implements Serializable {

    private static final long serialVersionUID=34557898901L;

    @ApiModelProperty(value = "财务账户")
    @TableId(value = "finance_account_id", type = IdType.AUTO)
    private Long financeAccountId;

    @ApiModelProperty(value = "部门 店铺")
    @TableField("sys_branch_office_id")
    private Long sysBranchOfficeId;

    @ApiModelProperty(value = "账户编码")
    @TableField("code")
    private String code;

    @ApiModelProperty(value = "户名")
    @TableField("name")
    private String name;

    @ApiModelProperty(value = "账户描述")
    @TableField("detail")
    private String detail;

    @ApiModelProperty(value = "状态 1激活  0未激活")
    @TableField("status")
    private Integer status;

    @ApiModelProperty(value = "排序 降序")
    @TableField("seq")
    private Integer seq;

    @ApiModelProperty(value = "余额")
    @TableField("surplus")
    private BigDecimal surplus;

    @TableField("deleted")
    @TableLogic
    private Integer deleted;


}
